home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Classes / PtrNumberLine / PtrNumberLine.h < prev    next >
Encoding:
Text File  |  1992-05-26  |  901 b   |  44 lines

  1. // By Judy D. Halchin, Educational Computing Services, Allegheny College.
  2. // You may freely copy, distribute and reuse this code. 
  3. // Allegheny College and the author disclaim any warranty of any kind, 
  4. // expressed or implied, as to its fitness for any particular use.
  5. // This work was partially supported by a Teacher Preparation grant from the 
  6. // National Science Foundation.
  7.  
  8. #import "NumberLine.h"
  9.  
  10. #define POINTERSIZE 30
  11.  
  12. @interface PtrNumberLine:NumberLine
  13. {
  14.     float x;
  15.         
  16.     id  pointerNXImage;
  17.     NXRect pointerRect;
  18.     
  19.     id target;
  20.     SEL action;
  21. }
  22.  
  23. - initFrame:(NXRect *)frameRect;
  24. - drawSelf:(const NXRect *)rects :(int)rectCount;
  25.  
  26. - (float)x;
  27. - setX:(float)newX;
  28.  
  29. - pointerNXImage;
  30. - (NXPoint)pointerLocation;
  31.  
  32. - mouseDown:(NXEvent *)theEvent;
  33.  
  34. - target;
  35. - (SEL)action;
  36. - setTarget:anObject;
  37. - setAction:(SEL)anAction;
  38.  
  39. - setMin:(float)newMin max:(float)newMax;
  40.  
  41. - (BOOL)acceptsFirstMouse;
  42.  
  43. @end
  44.